﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServerFrame;


namespace Servertest
{
    class Program
    {
        static void Main(string[] args)
        {
            Server srvserver = new Server(20,6666,20);  //int con,int p,int waCo
            HandlerCenter center = new HandlerCenter();

            srvserver.center = center;

            srvserver.Start();

            TransModel model = new TransModel(0, 1, 1,"abc");
            byte[] value = TransModelE_D.TransEncode_de(model);

            TransModel m = (TransModel)TransModelE_D.TransDecode_de(value);

            Console.WriteLine(m.type+"  "+m.area+"  "+m.command+"  "+m.GetMessage<string>());

            while (true)
            { }
        }
    }
}
